import request from '@/utils/request-fund'

export function getList(params) {
  return request({
    url: '/fundSource/search/' + params.page + '/' + params.size,
    method: 'GET'
  })
}

export function getAllFund() {
  return request({
    url: '/fundSource',
    method: 'GET'
  })
}

export function del(id) {
  return request({
    method: 'DELETE',
    url: '/fundSource/' + id
  })
}

export function add(source) {
  return request({
    method: 'POST',
    url: '/fundSource',
    data: source
  })
}

export function get(id) {
  return request({
    method: 'GET',
    url: '/fundSource/' + id
  })
}

export function update(id, source) {
  return request({
    method: 'PUT',
    url: '/fundSource/' + id,
    data: source
  })
}
